<?php

class ZFKiller_Grid_Extra_Btcolumn extends Bvb_Grid_Extra_Column {

	/**
	 *
	 * @param ZFKiller_Grid_Deploy_Table $grid
	 * @param array $options 
	 */
	public function __construct($grid, $options) {
		$options['pathIcon'] = $grid->getImagesUrl();
		
		if (!isset($options['name'])) {
			$options['name'] = 'btButtonEdit';
		}
		
		$this->class('btColumn')
				//->decorator('{{format}}')
				->format(array('Btcolumn', $options))
				->name($options['name'])
				->position('right')
				->title('');
	}

	/**
	 * Retorna o nome da coluna
	 *
	 * @return string
	 */
	public function getName() {
		return $this->getOption('name');
	}

}